<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>TP1-Algo:  Fichier source de Principal.cpp</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">TP1-Algo
   &#160;<span id="projectnumber">1.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Généré par Doxygen 1.8.6 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Page&#160;principale</span></a></li>
      <li><a href="namespaces.html"><span>Espaces&#160;de&#160;nommage</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Fichiers</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Liste&#160;des&#160;fichiers</span></a></li>
      <li><a href="globals.html"><span>Membres&#160;de&#160;fichier</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_principal_8cpp_source.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">Principal.cpp</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_principal_8cpp.html">Aller à la documentation de ce fichier.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">//Fichiers à compléter pour faire d&#39;autres tests.</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;</div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_labyrinthe_8h.html">Labyrinthe.h</a>&quot;</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;</div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="keyword">using namespace </span>std;</div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="keyword">using namespace </span>TP1;</div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;</div>
<div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="_principal_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">   17</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="_principal_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">main</a>()</div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;{</div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;    <span class="keywordflow">try</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;    {</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;        <a class="code" href="class_t_p1_1_1_labyrinthe.html">Labyrinthe</a> lab;</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;        ifstream entree(<span class="stringliteral">&quot;FichiersLabyrinthe/Lab2x3/rouge.txt&quot;</span>);</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;        <span class="comment">//Cette déclaration équivaut à :</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;        <span class="comment">//ifstream entree;</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;        <span class="comment">//entree.open(&quot;nomFichier&quot;, ios::in);</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;        <span class="comment">//On doit «évaluer le stream», après l&#39;appel à la fonction open.</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;        <span class="comment">//Si tout c&#39;est bien passé, le résultat de cette évaluation sera true,et il</span></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;        <span class="comment">//sera false en cas de problème.</span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;        <span class="keywordflow">if</span> (!entree)</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;        {</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;            cout &lt;&lt; <span class="stringliteral">&quot;Fichier rouge introuvable.\n&quot;</span>;</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;            <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;        }</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;        lab.<a class="code" href="class_t_p1_1_1_labyrinthe.html#a854dc263c65a447286038fde7843ec41">chargeLabyrinthe</a>(<a class="code" href="namespace_t_p1.html#a8b5ef3e0301394a6503b5b11ab59690ea595da0cd6755470faa7557f03b500a63">Rouge</a>, entree);</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;        cout &lt;&lt; <span class="stringliteral">&quot;\nLabyrinthe rouge chargé.\n&quot;</span>;</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;        entree.close(); <span class="comment">//on ferme le fichier</span></div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;        entree.open(<span class="stringliteral">&quot;FichiersLabyrinthe/Lab2x3/vert.txt&quot;</span>, ios::in);</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;        <span class="keywordflow">if</span> (!entree)</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;        {</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;            cout &lt;&lt; <span class="stringliteral">&quot;Fichier vert introuvable.\n&quot;</span>;</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;            <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;        }</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;        lab.<a class="code" href="class_t_p1_1_1_labyrinthe.html#a854dc263c65a447286038fde7843ec41">chargeLabyrinthe</a>(<a class="code" href="namespace_t_p1.html#a8b5ef3e0301394a6503b5b11ab59690eabe0ea9860158ec92d69b0950c9a77a20">Vert</a>, entree);</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;        cout &lt;&lt; <span class="stringliteral">&quot;\nLabyrinthe vert chargé.\n&quot;</span>;</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;        entree.close();</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;        entree.open(<span class="stringliteral">&quot;FichiersLabyrinthe/Lab2x3/bleu.txt&quot;</span>, ios::in);</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;        <span class="keywordflow">if</span> (!entree)</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;        {</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;            cout &lt;&lt; <span class="stringliteral">&quot;Fichier bleu introuvable.\n&quot;</span>;</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;            <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;        }</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;        lab.<a class="code" href="class_t_p1_1_1_labyrinthe.html#a854dc263c65a447286038fde7843ec41">chargeLabyrinthe</a>(<a class="code" href="namespace_t_p1.html#a8b5ef3e0301394a6503b5b11ab59690eaee026ef535817b182f6343fd5f39f3f0">Bleu</a>, entree);</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;        cout &lt;&lt; <span class="stringliteral">&quot;\nLabyrinthe bleu chargé.\n&quot;</span>;</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;        entree.close();</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;        entree.open(<span class="stringliteral">&quot;FichiersLabyrinthe/Lab2x3/jaune.txt&quot;</span>, ios::in);</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;        <span class="keywordflow">if</span> (!entree)</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;        {</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;            cout &lt;&lt; <span class="stringliteral">&quot;Fichier jaune introuvable.\n\n&quot;</span>;</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;            <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;        }</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;        lab.<a class="code" href="class_t_p1_1_1_labyrinthe.html#a854dc263c65a447286038fde7843ec41">chargeLabyrinthe</a>(<a class="code" href="namespace_t_p1.html#a8b5ef3e0301394a6503b5b11ab59690ea17294929f25c6255c90ba75bc66aad18">Jaune</a>, entree);</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;        cout &lt;&lt; <span class="stringliteral">&quot;\nLabyrinthe jaune chargé.\n&quot;</span>;</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;        entree.close();</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;        cout &lt;&lt; <span class="stringliteral">&quot;\nLe joueur rouge peut solutionner le labyrinthe en &quot;</span></div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;                &lt;&lt; lab.<a class="code" href="class_t_p1_1_1_labyrinthe.html#aaf2181692e1946ce3c42242acb34bcbe">solutionner</a>(<a class="code" href="namespace_t_p1.html#a8b5ef3e0301394a6503b5b11ab59690ea595da0cd6755470faa7557f03b500a63">Rouge</a>) &lt;&lt; <span class="stringliteral">&quot; déplacements.\n&quot;</span>;</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;        cout &lt;&lt; <span class="stringliteral">&quot;\nLe joueur vert peut solutionner le labyrinthe en &quot;</span></div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;                &lt;&lt; lab.<a class="code" href="class_t_p1_1_1_labyrinthe.html#aaf2181692e1946ce3c42242acb34bcbe">solutionner</a>(<a class="code" href="namespace_t_p1.html#a8b5ef3e0301394a6503b5b11ab59690eabe0ea9860158ec92d69b0950c9a77a20">Vert</a>) &lt;&lt; <span class="stringliteral">&quot; déplacements.\n&quot;</span>;</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;        cout &lt;&lt; <span class="stringliteral">&quot;\nLe joueur bleu peut solutionner le labyrinthe en &quot;</span></div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;                &lt;&lt; lab.<a class="code" href="class_t_p1_1_1_labyrinthe.html#aaf2181692e1946ce3c42242acb34bcbe">solutionner</a>(<a class="code" href="namespace_t_p1.html#a8b5ef3e0301394a6503b5b11ab59690eaee026ef535817b182f6343fd5f39f3f0">Bleu</a>) &lt;&lt; <span class="stringliteral">&quot; déplacements.\n&quot;</span>;</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;        cout &lt;&lt; <span class="stringliteral">&quot;\nLe joueur jaune peut solutionner le labyrinthe en &quot;</span></div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;                &lt;&lt; lab.<a class="code" href="class_t_p1_1_1_labyrinthe.html#aaf2181692e1946ce3c42242acb34bcbe">solutionner</a>(<a class="code" href="namespace_t_p1.html#a8b5ef3e0301394a6503b5b11ab59690ea17294929f25c6255c90ba75bc66aad18">Jaune</a>) &lt;&lt; <span class="stringliteral">&quot; déplacements.\n&quot;</span>;</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;        <a class="code" href="namespace_t_p1.html#a8b5ef3e0301394a6503b5b11ab59690e">Couleur</a> LeGagnant = lab.<a class="code" href="class_t_p1_1_1_labyrinthe.html#a0c496d235d32655572107f1ea18b8978">trouveGagnant</a>();</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;        <span class="keywordflow">switch</span> (LeGagnant)</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;        {</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;        <span class="keywordflow">case</span> 0:</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;            cout &lt;&lt; endl &lt;&lt; <span class="stringliteral">&quot;Le joureur gagnant: Rouge&quot;</span> &lt;&lt; endl &lt;&lt; endl; <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;        <span class="keywordflow">case</span> 1:</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;            cout &lt;&lt; endl &lt;&lt; <span class="stringliteral">&quot;Le joureur gagnant: Vert&quot;</span> &lt;&lt; endl &lt;&lt; endl; <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;        <span class="keywordflow">case</span> 2:</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;            cout &lt;&lt; endl &lt;&lt; <span class="stringliteral">&quot;Le joureur gagnant: Bleu&quot;</span> &lt;&lt; endl &lt;&lt; endl; <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;        <span class="keywordflow">case</span> 3:</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;            cout &lt;&lt; endl &lt;&lt; <span class="stringliteral">&quot;Le joureur gagnant: Jaune&quot;</span> &lt;&lt; endl &lt;&lt; endl; <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;        <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;            cout &lt;&lt; endl &lt;&lt; <span class="stringliteral">&quot;Le joureur gagnant: aucun!!&quot;</span> &lt;&lt; endl &lt;&lt; endl; <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;        }</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;        <span class="comment">//Simulation de l&#39;appel de la méthode cheminLabyrinthe() puis affichage du chemin retourné.</span></div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;        <a class="code" href="class_t_p1_1_1_chemin.html">TP1::Chemin</a> nomduchemin;</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;        std::cout &lt;&lt; <span class="stringliteral">&quot;Chemin Rouge : &quot;</span> &lt;&lt; std::endl;</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;        nomduchemin = lab.<a class="code" href="class_t_p1_1_1_labyrinthe.html#ac6e2db78398a84ccf495e318df7643d0">cheminLabyrinthe</a>(<a class="code" href="namespace_t_p1.html#a8b5ef3e0301394a6503b5b11ab59690ea595da0cd6755470faa7557f03b500a63">TP1::Rouge</a>);</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;        nomduchemin.<a class="code" href="class_t_p1_1_1_chemin.html#a3d4758db7e75c5fe85b0ac8f056c40dc">afficheChemin</a>();</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;        std::cout &lt;&lt; std::endl &lt;&lt; <span class="stringliteral">&quot;Chemin Vert : &quot;</span> &lt;&lt; std::endl;</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;        nomduchemin = lab.<a class="code" href="class_t_p1_1_1_labyrinthe.html#ac6e2db78398a84ccf495e318df7643d0">cheminLabyrinthe</a>(<a class="code" href="namespace_t_p1.html#a8b5ef3e0301394a6503b5b11ab59690eabe0ea9860158ec92d69b0950c9a77a20">TP1::Vert</a>);</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;        nomduchemin.<a class="code" href="class_t_p1_1_1_chemin.html#a3d4758db7e75c5fe85b0ac8f056c40dc">afficheChemin</a>();</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;        std::cout &lt;&lt; std::endl &lt;&lt; <span class="stringliteral">&quot;Chemin Bleu : &quot;</span> &lt;&lt; std::endl;</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;        nomduchemin = lab.<a class="code" href="class_t_p1_1_1_labyrinthe.html#ac6e2db78398a84ccf495e318df7643d0">cheminLabyrinthe</a>(<a class="code" href="namespace_t_p1.html#a8b5ef3e0301394a6503b5b11ab59690eaee026ef535817b182f6343fd5f39f3f0">TP1::Bleu</a>);</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;        nomduchemin.<a class="code" href="class_t_p1_1_1_chemin.html#a3d4758db7e75c5fe85b0ac8f056c40dc">afficheChemin</a>();</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;        std::cout &lt;&lt; std::endl &lt;&lt; <span class="stringliteral">&quot;Chemin Jaune : &quot;</span> &lt;&lt; std::endl;</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;        nomduchemin = lab.<a class="code" href="class_t_p1_1_1_labyrinthe.html#ac6e2db78398a84ccf495e318df7643d0">cheminLabyrinthe</a>(<a class="code" href="namespace_t_p1.html#a8b5ef3e0301394a6503b5b11ab59690ea17294929f25c6255c90ba75bc66aad18">TP1::Jaune</a>);</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;        nomduchemin.<a class="code" href="class_t_p1_1_1_chemin.html#a3d4758db7e75c5fe85b0ac8f056c40dc">afficheChemin</a>();</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;    } <span class="keywordflow">catch</span> (exception &amp; e)</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;    {</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;        cerr &lt;&lt; e.what() &lt;&lt; endl;</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;    }</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;    <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;}</div>
<div class="ttc" id="namespace_t_p1_html_a8b5ef3e0301394a6503b5b11ab59690ea595da0cd6755470faa7557f03b500a63"><div class="ttname"><a href="namespace_t_p1.html#a8b5ef3e0301394a6503b5b11ab59690ea595da0cd6755470faa7557f03b500a63">TP1::Rouge</a></div><div class="ttdef"><b>Definition:</b> <a href="_porte_8h_source.html#l00025">Porte.h:25</a></div></div>
<div class="ttc" id="class_t_p1_1_1_labyrinthe_html_a0c496d235d32655572107f1ea18b8978"><div class="ttname"><a href="class_t_p1_1_1_labyrinthe.html#a0c496d235d32655572107f1ea18b8978">TP1::Labyrinthe::trouveGagnant</a></div><div class="ttdeci">Couleur trouveGagnant()</div><div class="ttdoc">Méthode permettant de trouver la couleur qui résout le labyrinthe le plus rapidement. </div><div class="ttdef"><b>Definition:</b> <a href="_labyrinthe_8cpp_source.html#l00464">Labyrinthe.cpp:464</a></div></div>
<div class="ttc" id="class_t_p1_1_1_labyrinthe_html_a854dc263c65a447286038fde7843ec41"><div class="ttname"><a href="class_t_p1_1_1_labyrinthe.html#a854dc263c65a447286038fde7843ec41">TP1::Labyrinthe::chargeLabyrinthe</a></div><div class="ttdeci">void chargeLabyrinthe(Couleur couleur, std::ifstream &amp;entree)</div><div class="ttdoc">méthode permettant de charger un fichier contenant un labyrinthe d&#39;une certaine couleur ...</div><div class="ttdef"><b>Definition:</b> <a href="_labyrinthe_8cpp_source.html#l00549">Labyrinthe.cpp:549</a></div></div>
<div class="ttc" id="class_t_p1_1_1_labyrinthe_html"><div class="ttname"><a href="class_t_p1_1_1_labyrinthe.html">TP1::Labyrinthe</a></div><div class="ttdef"><b>Definition:</b> <a href="_labyrinthe_8h_source.html#l00031">Labyrinthe.h:31</a></div></div>
<div class="ttc" id="_principal_8cpp_html_ae66f6b31b5ad750f1fe042a706a4e3d4"><div class="ttname"><a href="_principal_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">main</a></div><div class="ttdeci">int main()</div><div class="ttdef"><b>Definition:</b> <a href="_principal_8cpp_source.html#l00017">Principal.cpp:17</a></div></div>
<div class="ttc" id="namespace_t_p1_html_a8b5ef3e0301394a6503b5b11ab59690e"><div class="ttname"><a href="namespace_t_p1.html#a8b5ef3e0301394a6503b5b11ab59690e">TP1::Couleur</a></div><div class="ttdeci">Couleur</div><div class="ttdoc">Énumération des couleurs possibles pour une porte. </div><div class="ttdef"><b>Definition:</b> <a href="_porte_8h_source.html#l00023">Porte.h:23</a></div></div>
<div class="ttc" id="namespace_t_p1_html_a8b5ef3e0301394a6503b5b11ab59690eaee026ef535817b182f6343fd5f39f3f0"><div class="ttname"><a href="namespace_t_p1.html#a8b5ef3e0301394a6503b5b11ab59690eaee026ef535817b182f6343fd5f39f3f0">TP1::Bleu</a></div><div class="ttdef"><b>Definition:</b> <a href="_porte_8h_source.html#l00025">Porte.h:25</a></div></div>
<div class="ttc" id="class_t_p1_1_1_labyrinthe_html_ac6e2db78398a84ccf495e318df7643d0"><div class="ttname"><a href="class_t_p1_1_1_labyrinthe.html#ac6e2db78398a84ccf495e318df7643d0">TP1::Labyrinthe::cheminLabyrinthe</a></div><div class="ttdeci">Chemin cheminLabyrinthe(Couleur joueur)</div><div class="ttdoc">Méthode permettant de trouver un chemin pour solutionner le labyrinthe pour une couleur donnée...</div><div class="ttdef"><b>Definition:</b> <a href="_labyrinthe_8cpp_source.html#l00125">Labyrinthe.cpp:125</a></div></div>
<div class="ttc" id="namespace_t_p1_html_a8b5ef3e0301394a6503b5b11ab59690ea17294929f25c6255c90ba75bc66aad18"><div class="ttname"><a href="namespace_t_p1.html#a8b5ef3e0301394a6503b5b11ab59690ea17294929f25c6255c90ba75bc66aad18">TP1::Jaune</a></div><div class="ttdef"><b>Definition:</b> <a href="_porte_8h_source.html#l00025">Porte.h:25</a></div></div>
<div class="ttc" id="class_t_p1_1_1_chemin_html_a3d4758db7e75c5fe85b0ac8f056c40dc"><div class="ttname"><a href="class_t_p1_1_1_chemin.html#a3d4758db7e75c5fe85b0ac8f056c40dc">TP1::Chemin::afficheChemin</a></div><div class="ttdeci">void afficheChemin() const </div><div class="ttdoc">Affiche le chemin en console, ligne par ligne, avec le nom et la distance du début de chaque pièce...</div><div class="ttdef"><b>Definition:</b> <a href="_chemin_8cpp_source.html#l00175">Chemin.cpp:175</a></div></div>
<div class="ttc" id="class_t_p1_1_1_labyrinthe_html_aaf2181692e1946ce3c42242acb34bcbe"><div class="ttname"><a href="class_t_p1_1_1_labyrinthe.html#aaf2181692e1946ce3c42242acb34bcbe">TP1::Labyrinthe::solutionner</a></div><div class="ttdeci">int solutionner(Couleur joueur)</div><div class="ttdoc">trouve le nombre d&#39;étapes minimales à franchir pour partir de la case départ et arriver à la case arr...</div><div class="ttdef"><b>Definition:</b> <a href="_labyrinthe_8cpp_source.html#l00383">Labyrinthe.cpp:383</a></div></div>
<div class="ttc" id="namespace_t_p1_html_a8b5ef3e0301394a6503b5b11ab59690eabe0ea9860158ec92d69b0950c9a77a20"><div class="ttname"><a href="namespace_t_p1.html#a8b5ef3e0301394a6503b5b11ab59690eabe0ea9860158ec92d69b0950c9a77a20">TP1::Vert</a></div><div class="ttdef"><b>Definition:</b> <a href="_porte_8h_source.html#l00025">Porte.h:25</a></div></div>
<div class="ttc" id="_labyrinthe_8h_html"><div class="ttname"><a href="_labyrinthe_8h.html">Labyrinthe.h</a></div><div class="ttdoc">Ce fichier contient l&#39;interface d&#39;un labyrinthe. </div></div>
<div class="ttc" id="class_t_p1_1_1_chemin_html"><div class="ttname"><a href="class_t_p1_1_1_chemin.html">TP1::Chemin</a></div><div class="ttdoc">Classe implémentant une liste simplement chaînée de pièces représentant un chemin dans un labyrinthe...</div><div class="ttdef"><b>Definition:</b> <a href="_chemin_8h_source.html#l00026">Chemin.h:26</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="_principal_8cpp.html">Principal.cpp</a></li>
    <li class="footer">Généré le Dimanche 8 Juin 2014 19:37:05 pour TP1-Algo par
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
  </ul>
</div>
</body>
</html>
